﻿using DBTramite.BussinesLogic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

//////using CrystalDecisions.Shared;
//using CrystalDecisions.CrystalReports.Engine;
//using CrystalDecisions.ReportSource;

namespace DBTramite.WebMVC4.Controllers
{
    public class T_ReportDocController : Controller
    {
        //
        // GET: /T_ReportDoc/

         
 
     /* public ActionResult Report() 
 { 
    ReportClass rptH = new ReportClass(); 
    rptH.FileName = Server.MapPath("[reportName].rpt"); 
    rptH.Load(); 
    rptH.SetDataSource([datatable]); 
    Stream stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); 
    return File(stream, "application/pdf");    
  } */

        public ActionResult Reporte()
        {
           //var lista = T_ReportDocController.GetT_DocumentosByCriterio("");
            return View();
        }

        [HttpPost]
        public ActionResult Reporte(string criterio = "")
        {
            //var lista = T_ReportDocControllerService.GetT_DocumentosByCriterio(criterio);
            return View();
        }
        public ActionResult Create()
        {
            var reporte = new T_ReportDocController();
            return View(reporte);
        }
                

    }
}
